import Vue from 'vue'

export default Vue.directive('control', {
  inserted(el, binding) {
    var authsList = JSON.parse(localStorage.getItem('authList')) || []
    if ( ! authsList.includes(binding.value) ) {
      el.style.display = 'none'
    }
  }
})